{include file="head" /}

<body ng-app="starter" ng-controller="AppCtrl" class="grade-a platform-browser platform-win32 platform-ready">
<ion-nav-bar class="bar-stable headerbar nav-bar-container" nav-bar-transition="ios" nav-bar-direction="none"
             nav-swipe="">
    <header class="header">
        <a href="">
            <img src="/static/public/images/home/default.png" alt="">
        </a>
        <p>
            <em>
                <img src="/static/public/images/home/logo.png" alt="">
            </em>
        </p>
        <div class="header-right">
            <div class="language">
                <span class="language-tit">中文</span>
                <em class="language-icon"><img src="/static/public/images/home/icon-china.png" alt=""></em>
            </div>
            <ul>
                <li onclick="changelang('zh-cn')">
                    <span>中文</span>
                    <em>
                        <img src="/static/public/images/home/icon-china.png" alt="">
                    </em>
                </li>
                <li onclick="changelang('en-us')">
                    <span>English</span>
                    <em>
                        <img src="/static/public/images/home/icon-english.png" alt="">
                    </em>
                </li>
                <li onclick="changelang('zh-tw')">
                    <span>繁體中文</span>
                    <em>
                        <img src="/static/public/images/home/icon-hk.png" alt="">
                    </em>
                </li>
                <!--<li>-->
                <!--	<span>日本语</span>-->
                <!--	<em>-->
                <!--		<img src="/static/public/images/home/icon-china.png" alt="">-->
                <!--	</em>-->
                <!--</li>-->
            </ul>
        </div>
        <!--<a onclick = "changelang('zh')" style="color:#fff">中文</a>-->
        <!--<a onclick = "changelang('en')" style="color:#fff">英文</a>-->
        <!--<a onclick = "changelang('tw')" style="color:#fff">繁体</a>-->
    </header>
</ion-nav-bar>

        <ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="enter" nav-swipe="">
            <ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active"
                      style="opacity: 1; transform: translate3d(0%, 0px, 0px);">

                {include file="tabs" /}
                <ion-nav-view name="tab-qoute" class="view-container tab-content">
                    <ion-view>
                        <ion-content
                                class="content-background scroll-content ionic-scroll scroll-content-false  has-header has-tabs home-content"
                                scroll="false" style="top:50px;">
                            <div class="home">
                                <div class="bannar">
                                    <div class="swiper-container bannar-swiper-container">
                                        <div class="swiper-wrapper">
                                            <div class="swiper-slide">
                                                <img src="/static/public/images/home/banner1.jpg" alt="">
                                            </div>
                                            <div class="swiper-slide">
                                                <img src="/static/public/images/home/banner2.jpg" alt="">
                                            </div>
                                            <div class="swiper-slide">
                                                <img src="/static/public/images/home/banner3.jpg" alt="">
                                            </div>
                                        </div>
                                        <div class="swiper-pagination bannar-pagination"></div>
                                    </div>
                                </div>
                                <div class="notice-w">
                                    <div class="notice marquee-animate">
									<span>
										<img src="/static/public/images/home/ico-notice.png" alt="">
									</span>
                                        <ul class="marquee">
                                             {volist name="notice" id="vo"}
                                            <li>{$vo.text}</li>
                                            {/volist}
                                        </ul>
                                    </div>
                                </div>
                                <div class="market">
                                    <div class="swiper-container market-swiper-container">
                                        <!--推荐种类-->
                                        <div class="swiper-wrapper product_list">


                                        </div>
                                        <div class="swiper-pagination market-pagination"></div>
                                    </div>
                                </div>
                                <div class="info">
                                    <div class="info-pay">
                                        <a href="/index/user/pay.html">
                                            <dl>
                                                <dt>
                                                    <span>{:lang('quickRecharge')}</span>
                                                    <em>{:lang('supportUSDTRecharge')}</em>
                                                </dt>
                                                <dd>
                                                    <img src="/static/public/images/home/ico-pay.png" alt="">
                                                </dd>
                                            </dl>
                                        </a>
                                    </div>
                                    <div class="info-detail">
                                        <a href="/index/order/hold.html">
                                            <dl>
                                                <dt>
                                                    <img src="/static/public/images/home/ico-position.png" alt="">
                                                </dt>
                                                <dd>{:lang('Position')}</dd>
                                            </dl>
                                        </a>
                                        <a href="/index/user/kefu.html">
                                            <dl>
                                                <dt>
                                                    <img src="/static/public/images/home/ico-help.png"  alt="">
                                                </dt>
                                                <dd>{:lang('Help')}</dd>
                                            </dl>
                                        </a>
                                    </div>
                                </div>
                                <div class="show">
                                    <a href="/index/user/ercode.html">
                                        <img src="/static/public/images/home/show.png" alt="">
                                    </a>
                                </div>
                                <div class="rate">
                                    <ul class="rate-hd">
                                        <li class="cur">{:lang('Increaselist')}</li>
                                        <!--  <li>成交额榜</li>
                                          <li>新币榜</li>-->
                                    </ul>
                                    <div class="rate-list">
                                        <div class="list-wrap">
                                            <ul class="list-hd">
                                                <li>{:lang('Name')}</li>
                                                <li> {:lang('Latestprice')}</li>
                                                <li>{:lang('Upsanddowns')}</li>
                                            </ul>
                                            <!--首页列表-->
                                            <div class="list">
                                                <!-- {volist name="pro" id="vo"} -->
                                                <a href="{:url('goods/goods',array('pid'=>$vo['pid']))}">
                                                    <div class="list-item">
                                                        <div class="item-field">
                                                            <div class="field-group">
                                                                <span>{$vo.ptitle}</span><em></em>
                                                            </div>
                                                        </div>
                                                        <div class="item-field">
                                                            <p> {$vo.Price}</p>
                                                        </div>
                                                        <div class="item-field">
                                                            <span class="down">{$vo.zf}</span>
                                                        </div>
                                                    </div>
                                                </a>
                                                <!-- {/volist} -->


                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </ion-content>
                    </ion-view>
                </ion-nav-view>
            </ion-tabs>
        </ion-nav-view>

        <script>
            let _pathname;
            var languageMap = {
                'zh-cn':{
                    name:'中文',
                    img:'/static/public/images/home/icon-china.png'
                },
                'en-us':{
                    name:'English',
                    icon:'/static/public/images/home/icon-english.png'
                },
                'zh-tw':{
                    name:'繁體中文',
                    icon:'/static/public/images/home/icon-hk.png'
                }
            }
 /*           var charturl = '/index/index/getchart.html';
            $.get(charturl, function (_res) {


                var res = jQuery.parseJSON(Base64.decode(_res));

                $.each(res, function (k, v) {
                    $('.' + k).html(v);
                })
            })*/

            function changelang(lang){
                _pathname = window.location.pathname;
                window.location.href = window.location.pathname+'?lang='+lang;
                /*
                $.get("/index/index/changelang.html",{"lang":lang},function(){
                    _pathname = window.location.pathname;
                    window.location.href = window.location.pathname+'?lang='+lang;
                    //location.reload();
                })*/
            }
            /*
            function getParams(){
                 var url = location.search //获取url中"?"符后的字串 ('?modFlag=business&role=1')
                 var theRequest = new Object()
                 if (url.indexOf('?') != -1) {
                     var str = url.substr(1) //substr()方法返回从参数值开始到结束的字符串；
                     var strs = str.split('&')
                     for (var i = 0; i < strs.length; i++) {
                        theRequest[strs[i].split('=')[0]] = strs[i].split('=')[1]
                     }
                     if(theRequest && theRequest.lang){
                        $('.language-tit').text(languageMap[theRequest.lang].name);
                        $('.language-icon img').attr('src',languageMap[theRequest.lang].icon);
                     }
                 }
            }

            getParams();
            */
            var lang = '{$lang}';
            $('.language-tit').text(languageMap[lang].name);
            $('.language-icon img').attr('src',languageMap[lang].icon);
        </script>
</body>

</html>

<script src="/static/index/js/flexible.js"></script>
<script src="/static/index/js/zepto.min.js"></script>
<script src="/static/index/js/swiper.min.js"></script>
<script src="/static/index/js/lk/index.js">//ajaxpro()</script>
<script src="/static/index/js/home.js"></script>